#include "stdafx.h"
#include "ComboBoxExample.h"

void ComboBoxExample::loadFile(const String& fileName, FCView *view){
    FCUIXml::loadFile(fileName, view);
    //获取第二页
   FCTabPage *tabPage = getTabPage(L"TabPage2");
   FCComboBox *comboBox = new FCComboBox();
    FCPoint point = {100,100};
    comboBox->setLocation(point);
    FCSize size = {100,20};
    comboBox->setSize(size);
   tabPage->addView(comboBox);
   comboBox->addItem(new FCMenuItem(L"选项4"));
   comboBox->addItem(new FCMenuItem(L"选项5"));
   comboBox->addItem(new FCMenuItem(L"选项6"));
   comboBox->setSelectedIndex(0);
}
